﻿using ConsoleApp2.Modals.Entity;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Text;

namespace ConsoleApp2.Modals
{
    //上下文
    public class Admin4000DbContext:DbContext
    {
        //构造函数
        public Admin4000DbContext() : base("server=.;database=Admin4000;uid=sa;pwd=123456")
        {

        }
        public DbSet<Product> Products { get; set; }

        public DbSet<Brands> Brands { get; set; }
    }
}
